<template>
  <div>
    <!-- 底部标签栏 -->
    <van-tabbar v-model="active" route :placeholder="true">
      <van-tabbar-item to="/home">
        <span>首页</span>
        <template #icon>
          <span class="iconfont icon-index-fill"></span>
        </template>
      </van-tabbar-item>
      <van-tabbar-item to="/member">
        <span>会员</span>
        <template #icon>
          <span class="iconfont icon-icon_zhanghao"></span>
        </template>
      </van-tabbar-item>
      <van-tabbar-item icon="cart-o" to="/shopcar" :badge="$store.getters.count">购物车</van-tabbar-item>
      <van-tabbar-item icon="search" to="/search">搜索</van-tabbar-item>
    </van-tabbar>
  </div>
</template>

<script>
export default {
  data() {
    return {
      active: 0
    }
  },
  created() {},
  methods: {}
}
</script>

<style lang="less" scoped>
</style>
